From 23ffc5a6359dbc84a1de1da632412edeb9989b5f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 2 Nov 2022 19:47:29 -0700 Subject: move to app layout --- src/routes/(app)/invoice/[id]/tip/+page.server.js | 5 + src/routes/(app)/invoice/[id]/tip/+page.svelte | 251 ++++++++++++++++++++++ 2 files changed, 256 insertions(+) create mode 100644 src/routes/(app)/invoice/[id]/tip/+page.server.js create mode 100644 src/routes/(app)/invoice/[id]/tip/+page.svelte (limited to 'src/routes/(app)/invoice/[id]/tip') diff --git a/src/routes/(app)/invoice/[id]/tip/+page.server.js b/src/routes/(app)/invoice/[id]/tip/+page.server.js new file mode 100644 index 00000000..1068f273 --- /dev/null +++ b/src/routes/(app)/invoice/[id]/tip/+page.server.js @@ -0,0 +1,5 @@ +import invoice from '$lib/invoice'; + +export const actions = { + default: invoice +}; diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte new file mode 100644 index 00000000..6ea3aae5 --- /dev/null +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -0,0 +1,251 @@ + + + + +
+
+ + + + + + +

{$t('invoice.addTipq')}

+ {#if !showCustomAmount} +
{Math.round(tipPercent)}%
+ + + +
+
+ + {f(amountFiat, currency)} + +{f(tipAmount, currency)} + +
+ +
+ {s(amount)} + +{s(tip)} SAT +
+
+ + {#if tip} +
+ + +
+ {:else} + {#each tipAmounts as amount} + + {/each} + {/if} + +
+ +
+ {/if} + +
+
+ + {/if} + + + -- cgit v1.2.3